<template>
	<view>
		<text v-show="isSearch" class="search-tit">没有搜索到相关结果</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchText:"",
				isSearch:false
			};
		},
		onNavigationBarSearchInputClicked(){
			console.log("点击")
		},
		onNavigationBarButtonTap(val) {
			// this.searchText=""
		},
		onNavigationBarSearchInputConfirmed(){
			console.log("搜索")
			// this.searchText=""
			this.isSearch = true
			uni.hideKeyboard();//隐藏软键盘
		},
		onNavigationBarSearchInputChanged(val) {
			this.searchText = val.text
		}
	}
</script>

<style lang="scss">
	.search-tit{
		position:fixed;
		top:30%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: #afafaf;
	}
</style>
